<html>
<script type="text/javascript">
chrome.webRequest.onBeforeRequest.addListener(
	function(details) {
		return {
			redirectUrl: details.url.replace(/bbs\.stuhome\.net/,"bbs.qshpan.com")
		};
	},
	{
		urls: [
			"http://bbs.stuhome.net/*",
		]
	},
	["blocking"]
);

chrome.browserAction.onClicked.addListener(function(tab) {
	chrome.tabs.create({
		url: "http://bbs.stuhome.net",
		active: true,
		pinned: false
	});
});
</script>
</html>
